/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ecocrypt.proxy.forwarder.gui;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 *
 * @author Bryce Alcock
 */
public class ForwarderViewMenuBarBuilder {
    public static final String CREATE_NEW_FORWARDER = "CREATE_NEW FORWARDER";
    public static ForwarderViewMenuBarBuilder instance = new ForwarderViewMenuBarBuilder();
    public JMenuBar menuBar(){

        jMenuBar1 = new JMenuBar();
        jMenu1 = new JMenu("Main");
        jMenu2 = new JMenu("File");
        addForwarderMenuItem = new JMenuItem("Add Forwarder ...");

        jMenu1.add(addForwarderMenuItem);
        jMenuBar1.add(jMenu1);
        jMenuBar1.add(jMenu2);

        addForwarderMenuItem.setActionCommand(CREATE_NEW_FORWARDER);
        addForwarderMenuItem.addActionListener(new MenuActionListener(null));
        return jMenuBar1;
    }

    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private JMenuItem addForwarderMenuItem;

}
